//查询书籍章节
export  function getBookChapters(fictionId){
 	  return new Promise((resolve,reject)=>{
		  uni.request({
		  			url: `http://api.pingcc.cn/fictionChapter/search/${fictionId}`,
		  			method: "GET",
		  			success: async ({
		  				data 
		  			}) => {
		  				if(data.data.chapterList){
		  					resolve(data.data.chapterList)
		  				}else{
							resolve(null)
		  				}
		  			},
		  			fail(err) {
		  				reject(err)
		  			},
		  		})
	  }) 
}